package com.engine.game;

import com.badlogic.gdx.math.Vector2;

public class Helper {

	
	
	public static Vector2 getCenterFromLeftLow(Vector2 v, float width, float height){
		
		return new Vector2(v.x + (width/2), v.y + (height/2));
		
	}
	
    public static Vector2 getLeftLowFromCenter(Vector2 v, float width, float height){
    	
    	return new Vector2(v.x - (width/2), v.y - (height/2));
	}
    
    public static float addHalf(float x, float add){
		
		return x + (add/2);
		
	}
	
    public static float subHalf(float x, float sub){
		
		return x - (sub/2);
		
	}
	
}
